package org.acghub.json;


import java.util.*;

public class TestEntity {
    private Long id;
    private String name;
    private Integer age;
    private String address;
    private String phone;
    private String email;
    private Date birthday;

    private TestEntity1 entity1;
    private List<TestEntity2> entity2List;
    private Set<TestEntity3> entity3Set;
    private Map<Long, TestEntity4> entity4Map;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public TestEntity1 getEntity1() {
        return entity1;
    }

    public void setEntity1(TestEntity1 entity1) {
        this.entity1 = entity1;
    }

    public List<TestEntity2> getEntity2List() {
        return entity2List;
    }

    public void setEntity2List(List<TestEntity2> entity2List) {
        this.entity2List = entity2List;
    }

    public Set<TestEntity3> getEntity3Set() {
        return entity3Set;
    }

    public void setEntity3Set(Set<TestEntity3> entity3Set) {
        this.entity3Set = entity3Set;
    }

    public Map<Long, TestEntity4> getEntity4Map() {
        return entity4Map;
    }

    public void setEntity4Map(Map<Long, TestEntity4> entity4Map) {
        this.entity4Map = entity4Map;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        TestEntity that = (TestEntity) o;
        return Objects.equals(id, that.id) && Objects.equals(name, that.name) && Objects.equals(age, that.age) && Objects.equals(address, that.address) && Objects.equals(phone, that.phone) && Objects.equals(email, that.email) && Objects.equals(birthday, that.birthday) && Objects.equals(entity1, that.entity1) && Objects.equals(entity2List, that.entity2List) && Objects.equals(entity3Set, that.entity3Set) && Objects.equals(entity4Map, that.entity4Map);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, age, address, phone, email, birthday, entity1, entity2List, entity3Set, entity4Map);
    }

    @Override
    public String toString() {
        return "TestEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", address='" + address + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", birthday=" + birthday +
                ", entity1=" + entity1 +
                ", entity2List=" + entity2List +
                ", entity3Set=" + entity3Set +
                ", entity4Map=" + entity4Map +
                '}';
    }
}
